package com.hkyl.hospital.service;

import com.hkyl.hospital.entity.Hospitalized;

import java.util.List;

/**
 * @author sjh
 * @date 2023/07/13 16:27:05
 */
public interface HospitalizedService {

    int insert(Hospitalized hospitalized);

    int delete(Integer hospitalizedId);

    int update(Hospitalized hospitalized);

    List<Hospitalized> selectAll(Integer pageNumber, Integer pageSize);

    List<Hospitalized> selectIn(Integer pageNumber, Integer pageSize);

    List<Hospitalized> selectOut(Integer pageNumber, Integer pageSize);

    List<Hospitalized> selectByName(String patientName, Integer pageNumber, Integer pageSize);

    //根据病人id获取病人的所在的病房
    Hospitalized findByPatientId(Integer patientId);

    //修改病人读取状态
    Hospitalized updateReaded(Hospitalized hospitalized);
}
